package com.xuecheng.api.media;

import com.xuecheng.api.media.model.ResourceUrlModel;
import com.xuecheng.api.media.model.dto.LiveCourseDTO;
import com.xuecheng.api.media.model.qo.QueryLiveCourseModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: NFY
 * @date: 2021/4/22
 * @Description:
 */
@Api(value = "直播管理 Api 接口", tags = "直播管理业务服务 Api 接口", description = "直播管理业务服务 Api 接口")
public interface LiveCourseApi {

    @ApiOperation("直播列表")
    PageVO<LiveCourseDTO> queryLiveCourseList(PageRequestParams params, QueryLiveCourseModel model);

    @ApiOperation("获取推流地址")
    ResourceUrlModel getLivePushUrl(@PathVariable Long coursePubId, @PathVariable Long teachplanId);
    @ApiOperation("获取播流地址")
    ResourceUrlModel getLivePullUrl(@RequestParam Long coursePubId, @RequestParam Long teachplanId);
}
